<!--
- Author:   .
- Date:    2017/7/17 0017.
- File:    index.
-->
<template>
  <div>
    <div class="nav_list2  bg_fff hidden pl20 pr20 bor_b_dcdddd">
      <ul>
        <!--<li class="h114"><span class="fl lefttext">头像</span>-->
          <!--<div class="fr photo"><img :src="memberInfo.member_avatar" alt=""/></div>-->
        <!--</li>-->
        <!--<li class="h90">-->
          <!--<a href="javascript:void(0)" @click="gotoEdit">-->
            <!--<span class="disb hidden">-->
              <!--<span class="fl lefttext">昵称</span>-->
              <!--<i class="fr iconfont icon-rightdot"></i>-->
              <!--<span type="text" class="fr">{{memberInfo.member_name}}</span>-->
              <!--&lt;!&ndash;<span class="examine" style="float: right; margin-right: 10px;" v-show="memberInfo.rename_state == '1'">审核中</span>&ndash;&gt;-->
            <!--</span>-->
          <!--</a>-->
        <!--</li>-->
        <!--<li class="h90">-->
          <!--<a href="javascript:void(0)" @click="gotoEditTrueName">-->
            <!--<span class="disb hidden">-->
              <!--<span class="fl lefttext">真实姓名</span>-->
              <!--<i class="fr iconfont icon-rightdot"></i>-->
              <!--<span type="text" class="fr">{{memberInfo.member_truename}}</span>-->
              <!--&lt;!&ndash;<span class="examine" style="float: right; margin-right: 10px;" v-show="memberInfo.rename_state == '1'">审核中</span>&ndash;&gt;-->
            <!--</span>-->
          <!--</a>-->
        <!--</li>-->
        <li class="h90">
          <a href="javascript:void(0)">
            <span class="disb hidden">
              <span class="fl lefttext">ID号</span>
              <span type="text" class="fr">{{memberInfo.member_id}}</span>
            </span>
          </a>
        </li>
        <li class="h90">
          <router-link :to="{name: 'setting-password'}">
            <span class="disb hidden">
            <span class="fl lefttext">修改密码</span>
            <i class="fr iconfont icon-rightdot"></i>
          </span>
          </router-link>
        </li>
        <li class="h90">
          <router-link :to="{name: 'setting-bankCard'}">
            <span class="disb hidden">
            <span class="fl lefttext">填写或修改银行卡</span>
            <i class="fr iconfont icon-rightdot"></i>
          </span>
          </router-link>
        </li>
        <li class="h90">
          <router-link :to="{name: 'setting-name'}">
            <span class="disb hidden">
            <span class="fl lefttext">修改姓名</span>
            <i class="fr iconfont icon-rightdot"></i>
          </span>
          </router-link>
        </li>
      </ul>
    </div>
    <!--<div class="pl20 pr20 mt35" v-show="$utils.getDeviceType() != 'weixin'">-->
    <!--<div class="pl20 pr20 mt35">-->
      <!--<button type="button" class="but_1 wauto" @click="signOut">退出登录</button>-->
    <!--</div>-->
    <back-nav></back-nav>
    <footer-tab></footer-tab>
  </div>
</template>

<script>
  import {mapModules, mapRules} from 'vuet'

  export default{
    mixins: [
      mapModules({memberInfo: 'memberInfo'}),
      mapRules({need: 'memberInfo'})
    ],
    data() {
      return {}
    },
    components: {},
    methods: {
      gotoEdit() {
//        if (this.memberInfo && this.memberInfo.rename_state == '0') {
        this.$router.push({name: 'setting-name'})
//        }
      },
      gotoEditTrueName() {
//        if (this.memberInfo && this.memberInfo.rename_state == '0') {
        this.$router.push({name: 'setting-truename'})
//        }
      },
      signOut() {
        this.$storage.delKey()
        this.$storage.setAuthed(false)
        this.$storage.delMemberInfo()
        this.$utils.delCookie('key')
        this.$router.replace({name: 'my'})
      }
    }
  }
</script>

<style>

</style>
